{% extends "layout.html" %}
{% block content %}
<div class="span7">
  <div class = "row">
    <h2><i class = "icon-calendar"></i>Agenda's</h2>
    {% if calendars %}
      {% for cal in calendars %}
        <div class = "row-fluid">
          <div class = "span12">
            <i class = "icon-play"></i>&nbsp;
            <a href = "{{url_for('show_calendar', cal_id=cal[0] )}}">{{ cal[1] }}</a>
          </div>
        </div>
      {% endfor %}
    {% endif %}
	<hr>
	<h2><i class = "icon-calendar"></i>Persoonlijke agenda's</h2>
    {% if tokens %}
      {% for token in tokens %}
        <div class = "row-fluid">
          <div class = "span12">
            <i class = "icon-star"></i>&nbsp;
            <a href = "{{ url_for('personal_calendar', token=token.token) }}">{{ token.name }}</a></li>
          </div>
		</div>
      {% endfor %}
    {% endif %}
  </div><!--/row-->
</div><!--/span-->
{% endblock %}